// 岗位配置
import request from "@/utils/request.js";

//查询
export function listPostSet(params) {
  return request({
    url: `/system/insurance/post/list`,
    method: "get",
    params,
  });
}

//新增
export function addPostSet(data) {
  return request({
    url: `/system/insurance/post`,
    method: "post",
    data,
  });
}

//修改
export function editPostSet(data) {
  return request({
    url: `/system/insurance/post`,
    method: "put",
    data,
  });
}

//导出
export function exportPostSet(data) {
  return request({
    url: `/system/insurance/post/export`,
    method: "put",
    responseType: "blob",
    data,
  });
}

//删除
export function deletePostSet(ids) {
  return request({
    url: `/system/insurance/post/${ids}`,
    method: "delete",
  });
}

//详情
export function detailPostSet(id) {
  return request({
    url: `/system/insurance/post/${id}`,
    method: "get",
  });
}
